/**
 * Colors
 * -------------------------------------------------------------------------- */

:root {
  --vp-c-brand: #646cff;
  --vp-c-brand-light: #747bff;
  --vp-c-brand-lighter: #9499ff;
  --vp-c-brand-lightest: #bcc0ff;
  --vp-c-brand-dark: #535bf2;
  --vp-c-brand-darker: #454ce1;
  --vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
  --c-brand: #646cff;
  --c-brand-light: #747bff;
}

/**
 * Component: Button
 * -------------------------------------------------------------------------- */

:root {
  --vp-button-brand-border: var(--vp-c-brand-light);
  --vp-button-brand-text: var(--vp-c-white);
  --vp-button-brand-bg: var(--vp-c-brand);
  --vp-button-brand-hover-border: var(--vp-c-brand-light);
  --vp-button-brand-hover-text: var(--vp-c-white);
  --vp-button-brand-hover-bg: var(--vp-c-brand-light);
  --vp-button-brand-active-border: var(--vp-c-brand-light);
  --vp-button-brand-active-text: var(--vp-c-white);
  --vp-button-brand-active-bg: var(--vp-button-brand-bg);
}

/**
 * Component: Home
 * -------------------------------------------------------------------------- */

:root {
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);

  --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
  --vp-home-hero-image-filter: blur(40px);
}

@media (min-width: 640px) {
  :root {
    --vp-home-hero-image-filter: blur(56px);
  }
}

@media (min-width: 960px) {
  :root {
    --vp-home-hero-image-filter: blur(72px);
  }
}

/**
 * Component: Custom Block
 * -------------------------------------------------------------------------- */

:root {
  --vp-custom-block-tip-border: var(--vp-c-brand);
  --vp-custom-block-tip-text: var(--vp-c-brand-darker);
  --vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
}

.dark {
  --vp-custom-block-tip-border: var(--vp-c-brand);
  --vp-custom-block-tip-text: var(--vp-c-brand-lightest);
  --vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
}

/**
 * Component: Algolia
 * -------------------------------------------------------------------------- */

.DocSearch {
  --docsearch-primary-color: var(--vp-c-brand) !important;
}

/**
 * VitePress: Custom fix
 * -------------------------------------------------------------------------- */

/*
  Use lighter colors for links in dark mode for a11y.
  Also specify some classes twice to have higher specificity
  over scoped class data attribute.
*/
// .dark .vp-doc a,
.dark .vp-doc a > code,
.dark .VPNavBarMenuLink.VPNavBarMenuLink:hover,
.dark .VPNavBarMenuLink.VPNavBarMenuLink.active,
.dark .link.link:hover,
.dark .link.link.active,
.dark .edit-link-button.edit-link-button,
.dark .pager-link .title {
  color: var(--vp-c-brand-lighter);
}

// .dark .vp-doc a:hover,
.dark .vp-doc a > code:hover {
  color: var(--vp-c-brand-lightest);
  opacity: 1;
}
.vp-doc a {
  font-weight: normal;
  text-decoration: none;
}
.vp-doc p {
  margin: 0;
  em {
    color: var(--vp-c-text-1);
  }
}
/* Transition by color instead of opacity */
.dark .vp-doc .custom-block a {
  transition: color 0.25s;
}
.custom-block.tip p {
  color: var(--vp-custom-block-tip-text) !important;
}
strong {
  color: #00c1d4;
}
blockquote {
  padding: 0 12px;
  font-weight: 600;
  border-left: 3px solid #6ee7b7 !important;
  border-right: 3px solid #6ee7b7;
  border-radius: 6px;
}
a:hover {
  text-decoration: none !important;
}
summary {
  font-weight: 600;
  &:hover {
    cursor: pointer;
    color: var(--vp-c-brand-lighter);
  }
}
svg {
  fill: var(--vp-c-text-1);
}
h1 {
  // h1 标签渐变色文本
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  color: #0000;
  white-space: nowrap;
  background-image: linear-gradient(to right, #09c8ce, #eb2f96);
  margin-bottom: 20px;
}
.VPHome {
  margin-bottom: 0 !important;
  padding-bottom: 104px !important;
}
.VPHero {
  .name {
    font-size: 60px;
    line-height: 72px;
  }
  .text {
    padding-top: 16px;
  }
  .tagline {
    display: flex;
    align-items: center;
  }
  .name {
    // 标题悬浮动画效果
    transition: all 0.3s ease-in-out;
    &:hover {
      transform: scale(1.02);
    }
  }
  .image-src {
    transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    &:hover {
      transform: translate(-50%, -50%) scale(1.2);
    }
  }
}
.Layout {
  position: relative;
  .VPContent .content .content-container {
    max-width: none;
  }
  .VPFooter {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    border: none;
    background-color: transparent;
    text-align: center;
    padding: 24px 32px;
    .container {
      display: inline-block;
      transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
      .message,
      .copyright {
        color: rgba(0, 0, 0, 0.68);
      }
      &:hover {
        transform: scale(1.05);
        .message,
        .copyright {
          font-weight: 600;
        }
      }
    }
  }
}
.dark {
  .VPFooter {
    .message,
    .copyright {
      color: rgba(255, 255, 255, 0.6) !important;
    }
  }
}
@media (min-width: 960px) {
  .VPLocalNav.has-sidebar {
    background-color: transparent;
    border: none;
    .VPLocalNavOutlineDropdown {
      padding: 0;
      button {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        border: 1px solid var(--vp-c-text-1);
        border-left: none;
        padding: 6px 12px;
        color: var(--vp-c-text-1);
        transition: all 0.2s;
        &:hover {
          font-weight: 600;
          color: var(--vp-c-brand);
          border-color: var(--vp-c-brand);
        }
      }
      .outline-link {
        transition: all 0.2s;
        &:hover {
          color: var(--vp-c-brand-1);
        }
      }
    }
  }
}
.VPLocalNav.has-sidebar {
  .menu {
    transition: all 0.2s;
    &:hover {
      font-weight: 600;
      color: var(--vp-c-brand);
    }
  }
  button {
    .menu-text,
    .vpi-chevron-right {
      transition: all 0.2s;
    }
    &:hover {
      .menu-text {
        color: var(--vp-c-brand);
        font-weight: 600;
      }
      .vpi-chevron-right {
        color: var(--vp-c-brand);
      }
    }
  }
  .VPLocalNavOutlineDropdown {
    .outline-link {
      transition: all 0.2s;
      &:hover {
        color: var(--vp-c-brand-1);
      }
    }
  }
}
.VPNavBar:not(.has-sidebar):not(.top) {
  border: none;
  background-color: transparent !important;
}
.VPNavBar {
  .curtain {
    display: none;
  }
  .content-body {
    pointer-events: none;
    border: none;
    background-color: transparent !important;
  }
  .VPNavBarSearch {
    pointer-events: none;
  }
  .divider {
    display: none;
  }
}
.VPNavBarTitle .title {
  color: rgba(0, 0, 0, 0.72);
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  .VPImage {
    transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }
  &:hover {
    transform: scale(1.1);
    color: #bd34fe;
    .VPImage {
      transform: scale(1.1);
    }
  }
}
.dark {
  .VPNavBarTitle .title {
    color: rgba(255, 255, 255, 0.88);
    &:hover {
      color: #09c8ce;
    }
  }
}
.VPHero {
  .actions {
    .action {
      .VPButton {
        border-color: transparent !important;
        border-radius: 12px !important;
      }
      .VPButton.brand {
        font-weight: 700;
        border: none;
        background: linear-gradient(to right, #09c8ce, #eb2f96);
        transition: all 0.25s;
        &:hover {
          background: linear-gradient(to right, #eb2f96, #09c8ce);
          box-shadow: 0 0 3px 3px rgba(65, 209, 255, 0.12);
        }
      }
    }
    .action {
      .VPButton.alt {
        background-color: rgba(235, 235, 235, 0.85) !important;
        transition: all 0.25s;
      }
      .VPButton.alt {
        &:hover {
          border-color: #eb2f96 !important;
          box-shadow: 0 0 3px 3px rgba(235, 47, 150, 0.12);
        }
      }
    }
  }
}
.dark {
  .VPHero {
    .actions .action {
      .VPButton.alt {
        background-color: rgba(0, 0, 0, 0.45) !important;
        &:hover {
          border-color: rgb(9, 200, 206) !important;
          box-shadow: 0 0 3px 3px rgba(9, 200, 206, 0.12);
        }
      }
    }
  }
}
.VPSwitch {
  background-color: transparent !important;
  &:hover {
    border-color: #e4c31b !important;
    box-shadow: 0 0 1.5px 3px rgba(228, 195, 27, 0.24);
  }
}
.DocSearch-Button {
  border-radius: 12px;
  background-color: rgba(235, 235, 235, 0.6);
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  &:hover {
    transform: scale(1.05);
    border-color: #bd34fe;
    background-color: rgba(235, 235, 235, 0.6);
    box-shadow: 0 0 3px 3px rgba(189, 52, 254, 0.12);
  }
}
.dark {
  .DocSearch-Button {
    background-color: rgba(22, 22, 22, 0.6);
    &:hover {
      border-color: #09c8ce;
      background-color: rgba(22, 22, 22, 0.6);
      box-shadow: 0 0 3px 3px rgba(9, 200, 206, 0.12);
    }
  }
}
.VPFeatures .container {
  .items {
    align-items: flex-start;
    .item {
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
      .VPFeature {
        border-radius: 32px;
        border: none;
        transition: all 0.25s;
        .icon,
        .title {
          font-size: 18px;
          transition: all 0.25s;
        }
        .details {
          font-size: 16px;
        }
        .icon {
          width: 72px;
          height: 72px;
          font-size: 20px;
          font-weight: 700;
          border-radius: 24px;
          .logo {
            width: 32px;
            height: 32px;
          }
        }
      }
      &:hover {
        transform: scale(1.02);
        transform-origin: 50%, 50%;
        .VPFeature {
          box-shadow:
            0 6px 16px 0 rgba(0, 0, 0, 0.08),
            0 3px 6px -4px rgba(0, 0, 0, 0.12),
            0 9px 28px 8px rgba(0, 0, 0, 0.05);
        }
      }
    }
  }
}
.VPLink .text {
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transform-origin: 0% 50%;
  &:hover {
    transform: scale(1.1);
    font-weight: 600 !important;
  }
}
.is-active .VPLink .text {
  transform: scale(1.1) cubic-bezier(0.18, 0.89, 0.32, 1.28);
  font-weight: 600 !important;
}
.pager-link {
  border-radius: 12px !important;
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
  &:hover {
    transform: scale(1.05);
    box-shadow: 0 0 3px 3px rgba(100, 108, 255, 0.12);
  }
}
.tag-version {
  font-size: 16px;
  line-height: 1.5;
  font-weight: bold;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 12px;
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  color: #fff;
  background: linear-gradient(to right, #41d1ff, #c41d7f);
}
